//    jen-breakout is the game of breakout implemented in C, using SDL.
//    Copyright 2009 Nathan Michaels
//
//    This file is part of jen-breakout.
//
//    jen-breakout is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 2 of the License, or
//    (at your option) any later version.
//
//    jen-breakout is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with jen-breakout.  If not, see <http://www.gnu.org/licenses/>.

#ifndef __HIGHSCORES_H__
#define __HIGHSCORES_H__

#include <stdint.h>

#define NAME_LEN 20
#define NUM_HIGH_SCORES 5

typedef struct
{
    char name[NAME_LEN + 1];
    uint32_t score;
} high_score_t;


// GetName is passed a NAME_LEN character buffer and returns a null
// terminated string.
void GetName (char name[NAME_LEN]);
void WriteHighScores (void);
status_t InitHighScores (void);

extern high_score_t highScores[NUM_HIGH_SCORES];

#endif
